package zust.study.io;

import jdk.internal.util.xml.impl.Input;

import java.io.*;

public class Play02_字节流读文字 {
    public static void main(String[] args) throws IOException {
        File file = new File("c:/files/Java/IO/Play02_.txt");
        byte[] bytes = new byte[(int) file.length()];
        InputStream is = new FileInputStream(file);
        int size = is.read(bytes);
        System.out.println("size is " + size + ", and content :" + new String(bytes));
        System.out.println("bytes is :" + bytes);
    }
}
